package com.design.cjm.creational.builder.example1;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/24
 * @Version 1.0
 */
public class ConcreteBuilder2 extends Builder{

    private Product product = new Product();

    @Override
    public void buildPartA() {

        product.add("部件X");
    }

    @Override
    public void buildPartB() {

        product.add("部件Y");
    }

    @Override
    public Product getResult() {
        return product;
    }
}
